import { Button, ErrorBlock, Space } from 'antd-mobile'
import { useHistory } from 'react-router'
export default function NotFound() {
  const history = useHistory()
  return (
    <div>
      <ErrorBlock status="default" description={'无法访问'}>
        <Space>
          <Button onClick={() => history.push('/home')} color="primary">
            返回首页
          </Button>
          <Button onClick={() => history.goBack()} color="primary">
            返回上一页
          </Button>
        </Space>
      </ErrorBlock>
    </div>
  )
}
